import { Button } from 'antd'

export const handleClick = () => { }

export const handleDelete = () => { }

export const columns = [
  {
    title: '姓名',
    dataIndex: 'name',
  },
  {
    title: '年龄',
    dataIndex: 'age',
  },
  {
    title: '性别',
    dataIndex: 'sex',
    render: (row) => {
      return row ? '女' : '男'
    },
  },
  {
    title: '出身日期',
    dataIndex: 'birth',
  },
  {
    title: '地址',
    dataIndex: 'addr',
  },
  {
    title: '操作',
    width: '180px',
    render: (rowData) => {
      return (
        <div className="flex-box">
          <Button onClick={handleClick('edit', rowData)}>编辑</Button>
          <Button danger onClick={handleDelete(rowData)}>
            删除
          </Button>
        </div>
      )
    },
  },
]
